package com.andova.component.net

import java.io.File

interface NetworkSusCall {
    fun request(callback: NetworkSusCallback<out ResponseModel>?, call: Any?)

    /**
     * @param callback msg contain [Throwable] for exception, [Int] for progress, and [File] for result file.
     */
    fun download(url: String, dest: File, callback: (msg: Any) -> Unit)
    fun download(url: String, path: String, callback: (msg: Any) -> Unit)

    /**
     * 版本信息
     */
    fun version(): String
}